* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 20 Dec 2013 05:20:33 +0000 (07:20 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 20 Dec 2013 05:20:33 +0000 (07:20 +0200)
commitb32a4bb8f61075b46832fccf1638b6aecfd65b63
tree6f5be4b0d237b9db85e0fedfc2e4dc516a12e27a
parent7954039a954138911ce4a58c3321c94e67c4f274
* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
option.
(ruby-smie--indent-to-stmt-p): Use it.
(ruby-smie-rules): Revert the logic in the handling of `when'.
Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
(ruby-deep-arglist, ruby-deep-indent-paren)
(ruby-deep-indent-paren-style): Update docstrings to note that the
vars don't have any effect with SMIE.

* test/automated/ruby-mode-tests.el: Add tests for
`ruby-align-to-stmt-keywords'.

* test/indent/ruby.rb: Update examples to reflect the lack of change in
default indentation of `begin' blocks.
etc/NEWS
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el
test/indent/ruby.rb